package com.gi.profiler.model;

import com.gi.profiler.utils.DataConstants;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

@DatabaseTable
public class DisplaySettings {
    @DatabaseField(generatedId = true)
    private int id;

    /** The wallpaper. */
    @DatabaseField(foreign = true, canBeNull = true)
    private Wallpaper wallpaper;

    /** The auto rotation flag. */
    @DatabaseField
    private int autoRotate = DataConstants.NO_CHANGE;

    /**
     * The brigtness value . -1 for NO_CHANGE , -2 for Auto , else for specified
     * value
     */
    @DatabaseField
    private int brigtness = DataConstants.NO_CHANGE;

    /**
     * The screen timeout value . -1 for NO_CHANGE , -2 for Never , else for
     * specified value
     */
    @DatabaseField
    private int timeout = DataConstants.NO_CHANGE;

    public DisplaySettings() {
    }

    public DisplaySettings(Wallpaper wallpaper, int autoRotate, int brigtness, int timeout) {
	super();
	this.wallpaper = wallpaper;
	this.autoRotate = autoRotate;
	this.brigtness = brigtness;
	this.timeout = timeout;
    }

    /**
     * @return the id
     */
    public int getId() {
	return id;
    }

    /**
     * @return the wallpaper
     */
    public Wallpaper getWallpaper() {
	return wallpaper;
    }

    /**
     * @return the autoRotate
     */
    public int getAutoRotate() {
	return autoRotate;
    }

    /**
     * @return the brigtness
     */
    public int getBrigtness() {
	return brigtness;
    }

    /**
     * @return the timeout
     */
    public int getTimeout() {
	return timeout;
    }

    /**
     * @param id
     *            the id to set
     */
    public void setId(int id) {
	this.id = id;
    }

    /**
     * @param wallpaper
     *            the wallpaper to set
     */
    public void setWallpaper(Wallpaper wallpaper) {
	this.wallpaper = wallpaper;
    }

    /**
     * @param autoRotate
     *            the autoRotate to set
     */
    public void setAutoRotate(int autoRotate) {
	this.autoRotate = autoRotate;
    }

    /**
     * @param brigtness
     *            the brigtness to set
     */
    public void setBrigtness(int brigtness) {
	this.brigtness = brigtness;
    }

    /**
     * @param timeout
     *            the timeout to set
     */
    public void setTimeout(int timeout) {
	this.timeout = timeout;
    }
}
